package com.mdd.front.service.yangyangLeadingEnterprise;

import com.mdd.common.core.PageResult;
import com.mdd.common.entity.yangyangLeadingEnterprise.TAppPublicWelfareProject;
import com.mdd.common.entity.yangyangLeadingEnterprise.dto.AppPublicWelfareProjectDTO;
import com.mdd.common.entity.yangyangLeadingEnterprise.param.PublicWelfareProjectParam;
import com.mdd.front.validate.common.PageValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppPublicWelfareProjectCreateValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppPublicWelfareProjectSearchValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppPublicWelfareProjectUpdateValidate;
import com.mdd.front.vo.yangyangLeadingEnterprise.TAppPublicWelfareProjectDetailVo;
import com.mdd.front.vo.yangyangLeadingEnterprise.TAppPublicWelfareProjectListedVo;

import java.util.List;

/**
 * 领企公益服务接口类
 * @author LikeAdmin
 */
public interface ITAppPublicWelfareProjectService {

    /**
     * 领企公益列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<TAppPublicWelfareProjectListedVo>
     */
    PageResult<TAppPublicWelfareProjectListedVo> list(PageValidate pageValidate, TAppPublicWelfareProjectSearchValidate searchValidate);

    /**
     * 领企公益详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return TAppPublicWelfareProjectDetailVo
     */
    TAppPublicWelfareProjectDetailVo detail(Integer id);

    /**
     * 领企公益新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(TAppPublicWelfareProjectCreateValidate createValidate);

    /**
     * 领企公益编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(TAppPublicWelfareProjectUpdateValidate updateValidate);

    /**
     * 领企公益删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

    /**
     * 领企公益列表
     * @param param
     * @return
     */
    List<AppPublicWelfareProjectDTO>  selectList(PublicWelfareProjectParam param);
}
